import Axios from '../../lib/request'

//获取订单列表
export const getOrderList = function (data) {
    return Axios.post('/tbOrder/list', data)
}

//根据id 获取订单详情
export const getOrderDetailById = function (data) {
    return Axios.get('/tbOrder/detail', { params: data })
}

//订单发货
export const sendItem = function (data) {
    return Axios.post('/tbOrder/sendItem', data)
}

//获取快递公司列表
export const getPackageList = function (data) {
    return Axios.get('/tbLogistics/list', { params: data })
}

//获取快递公司服务店
export const getPackageService = function (data) {
    return Axios.get('/tbLogistics/list2', { params: data })
}

//获取快递物流信息
export const getTransformList = function (data) {
    return Axios.get('/logisticsInformation/queryList', { params: data })
}

//发起退款
export const applyReturn = function (data) {
    return Axios.post('/tbReturnapp/applyReturn', data)
}

//退款订单
export const refundList = function (data) {
    return Axios.post('/tbOrder/refundList', data)
}

//查询订单分销返利
export const tAgentStreamQueryByOrderId = function (data) {
    return Axios.post('/tAgentStream/queryByOrderId', data)
}